﻿<primitives:DialogBase x:Class="Neurotoxin.Godspeed.Shell.Views.Dialogs.WriteErrorDialog"
                       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                       xmlns:constants="clr-namespace:Neurotoxin.Godspeed.Shell.Constants"
                       xmlns:views="clr-namespace:Neurotoxin.Godspeed.Shell.Views" 
                       xmlns:primitives="clr-namespace:Neurotoxin.Godspeed.Shell.Primitives"
                       xmlns:lex="http://wpflocalizeextension.codeplex.com"
                       lex:LocalizeDictionary.DesignCulture="en-US"
                       lex:ResxLocalizationProvider.DefaultAssembly="Neurotoxin.Godspeed.Shell"
                       lex:ResxLocalizationProvider.DefaultDictionary="Resources"
                       Title="{lex:LocText TargetAlreadyExists}"
                       SizeToContent="WidthAndHeight">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0" Width="{Binding ElementName=ButtonsGrid, Path=ActualWidth}">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <GroupBox x:Name="TargetFileBox" Header="{lex:LocText TargetFileHeader, Suffix={x:Static constants:Strings.Colon}}" Grid.Row="0" Margin="5,5,5,10">
                <views:FileDetailsBox x:Name="TargetFile" />
            </GroupBox>
            <GroupBox x:Name="SourceFileBox" Header="{lex:LocText SourceFileHeader, Suffix={x:Static constants:Strings.Colon}}" Grid.Row="1" Margin="5,0,5,5">
                <views:FileDetailsBox x:Name="SourceFile" />
            </GroupBox>
        </Grid>
        <Grid Grid.Row="1" x:Name="ButtonsGrid">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            
            <Button Grid.Column="0" Grid.Row="0" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="Overwrite" Click="ButtonClick" />
            <Button Grid.Column="1" Grid.Row="0" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="OverwriteAll" Click="ButtonClick" />
            <Button Grid.Column="2" Grid.Row="0" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="OverwriteAllOlder" Click="ButtonClick" />
            <Button Grid.Column="0" Grid.Row="1" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="Resume" Click="ButtonClick" />
            <Button Grid.Column="1" Grid.Row="1" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="ResumeAll" Click="ButtonClick" />
            <Button Grid.Column="2" Grid.Row="1" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="Rename" Click="ButtonClick" />
            <Button Grid.Column="0" Grid.Row="2" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="Skip" Click="ButtonClick" />
            <Button Grid.Column="1" Grid.Row="2" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="SkipAll" Click="ButtonClick" />
            <Button Grid.Column="2" Grid.Row="2" Content="{lex:LocText}" Width="{lex:Loc WriteErrorDialogButtonWidth}"
             Margin="5" x:Name="Cancel" Click="ButtonClick" />
        </Grid>
    </Grid>
</primitives:DialogBase>